package com.example;

import com.example.dao.BookDao;
import lombok.val;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class Springboot08AopQuickstartApplication {

    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(Springboot08AopQuickstartApplication.class, args);
        BookDao bookDao = applicationContext.getBean(BookDao.class);
//        bookDao.save();
        bookDao.update();
    }

}
